package collection;

import java.util.ArrayList;

public class Demo05 {
  public static void main(String[] args) {
    /**
     * 增强for
     */
    ArrayList<String> list = new ArrayList<>();
    list.add("a");
    list.add("b");
    list.add("e");
    list.add("c");
    list.add("d");

    /**
     * 仅负责遍历
     */
    for (String s : list) {
      System.out.println(s);
    }
  }
}
